Using OBJECT and EMBED

To display a Flash Player movie in a web browser an HTML document must use the EMBED and OBJECT tags with the proper parameters. For the EMBED tag, all settings (such as HEIGHT, WIDTH, QUALITY, and LOOP) are attributes that appear between the angle brackets of the opening EMBED tag. For example:

<EMBED SRC="moviename.swf" WIDTH="100" HEIGHT="100" PLAY="true" 
LOOP="true" QUALITY="high"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
</EMBED>

For OBJECT, four settings (HEIGHT, WIDTH, CLASSID, and CODEBASE) are attributes that appear within the OBJECT tag; all others are parameters that appear in separate, named PARAM tags. For example:

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="100"
HEIGHT="100" CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"><PARAM NAME="MOVIE" VALUE="moviename.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="QUALITY" VALUE="high"></OBJECT>

To use both tags together, position the EMBED tag just before the closing OBJECT tag, like this:

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="100"
HEIGHT="100" CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"><PARAM NAME="MOVIE" VALUE="moviename.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="QUALITY" VALUE="high">
<EMBED SRC="moviename.swf" WIDTH="100" HEIGHT="100" PLAY="true" LOOP="true" QUALITY="high" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
</EMBED>
</OBJECT>

Note: If you are using both the OBJECT and the EMBED tags, use identical values for each attribute or parameter to ensure that playback is consistent across browsers. Also, swflash.cab#version=4,0,0,0 is optional. Leave it off if you don't want to check for version number.

The following list of tag attributes and parameters will help you understand the HTML that Publish creates and help you to write your own HTML to insert Flash movies. All items apply to both OBJECT and EMBED tags unless otherwise noted in the description. Optional entries are noted. When creating a template, you can substitute a template variable listed here for the value. See Creating templates for HTML publishing.